package edu.tfg.feed;

import java.util.List;

import edu.tfg.cliente.Cliente;
import edu.tfg.util.DAOFactory;

public class FeedBO {
	
	private FeedDAO feedDAO;
	
	public FeedBO() {
		this.feedDAO = DAOFactory.criaFeeDAO();
	}

	public void salvar(Feed f1) {
		this.feedDAO.salvar(f1);
	}

	public List<Feed> listar() {
		return this.feedDAO.listar();
	}

	public void excluir(Feed feed) {
		this.feedDAO.excluir(feed);
		
	}

	public Feed pesquisar(String string) {
		return this.feedDAO.pesquisar(string);
	}

	public void alterar(Feed feed) {
	 this.feedDAO.alterar(feed);
		
	}

	public Feed pesquisarPorCodigo(Integer codigoString) {
		
		return this.feedDAO.pesquisarPorCodigo(codigoString);
	}


}
